
(my/install-package-if-not-found 'org-page)

  (require 'org-page)
  (setq op/repository-directory "~/liangzid.github.io")
  (setq op/site-domain "https://liangzid.github.io/")
  ;; (setq op/repository-directory "~/imissliangzi.gitee.io")
  ;; (setq op/site-domain "https://18842378119.gitee.io/imissliangzi.gitee.io/")

  ;;; for commenting, you can choose either disqus, duoshuo or hashover
  (setq op/site-main-title "梁子！是这里吗？")
  (setq op/site-sub-title "======> 事情总是这样发生的，这样或那样，反正都一样。")
  (setq op/personal-duoshuo-shortname "Forst Liang")
  (setq op/personal-disqus-shortname "FFFFFrost")
  (setq op/hashover-comments t)
  ;;; the configuration below are optional
  ;; (setq op/personal-google-analytics-id "your_google_analytics_id")
  (setq op/personal-github-link "https://github.com/liangzid") ;; set github
  (setq op/category-ignore-list '("noshow" "category2"))
  
  (setq op/repository-org-branch "source") ;; default is "source"
  (setq op/repository-html-branch "master")  ;; default is "master"

(setq op/category-config-alist
      '(("blog" ;; this is the default configuration
         :show-meta t
         :show-comment t
         :uri-generator op/generate-uri
         :uri-template "/blog/%y/%m/%d/%t/"
         :sort-by :date     ;; how to sort the posts
         :category-index t) ;; generate category index or not
        ("wiki"
         :show-meta t
         :show-comment nil
         :uri-generator op/generate-uri
         :uri-template "/wiki/%t/"
         :sort-by :mod-date
         :category-index t)
        ("index"
         :show-meta nil
         :show-comment nil
         :uri-generator op/generate-uri
         :uri-template "/"
         :sort-by :date
         :category-index nil)
        ("about"
         :show-meta nil
         :show-comment nil
         :uri-generator op/generate-uri
         :uri-template "/about/"
         :sort-by :date
         :category-index nil)))



(provide 'init-blog)
